<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:data="http://www.thymeleaf.org/data"
      layout:decorator="layout">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
    <form th:action="@{/register}" method="post">
        姓    名：<input type="text" name="name"/>
        用 户 名：<input type="text" name="username"/>
        密    码：<input type="password" name="password"/>
        密码确认：<input type="password" name="password2"/>
        <button type="submit" class="btn bg-olive btn-block">注　册</button>
        <a th:href="@{/login}" href="login.html" class="text-center">使用已有账号登录</a>
    </form>
    <div th:text="${message}" />
</body>
</html>